using UnityEngine;

namespace Gameplay.PVE
{
    public class StunAction : SpecialActionBase
    {
        private float startTime;
        private float actionDuration;
        public override void Start(AddControlArg arg)
        {
            base.Start(arg);
            unit.SetIsStun(true);
            unit.Data.manualForward = Vector3.zero;
            unit.Transmit(ETransmitType.StopSkill);
            startTime = TimeManager.logicTime;
            actionDuration = arg.time;
        }
        
        public override void Update()
        {
            
        }

        public override void Free()
        {
            unit.SetIsStun(false);
            unit.Data.controlType = EControlType.None;
            base.Free();
        }
    }
}